<div class='center_form'>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>        
        <?php
        if(AAService::isAllowed("admin", "delete")){
        ?>
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/acl/admin/delete/id/<?php echo $this->id;?>")'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/delete.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("delBtn");?></div>
        </div>
        <?php }?>        
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/acl/admin");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="centerbig_form">
      <div class="center_top"><span class="center_top_title"><?php echo $this->translate("editAdminTitle"); ?></span></div>
      <div class="right_form_content">
            <div class="left_nav_div">
                <div class="left_nav_item_cur" id="left_nav0" onclick="javascript:LeftNav.changeDiv(0,3)"><?php echo $this->translate("editAdminNav1"); ?></div>
            <div class="left_nav_item" id="left_nav1" onclick="javascript:LeftNav.changeDiv(1,3)"><?php echo $this->translate("editAdminNav2"); ?></div>
            <div class="left_nav_item" id="left_nav2" onclick="javascript:LeftNav.changeDiv(2,3)"><?php echo $this->translate("editAdminNav3"); ?></div>
            </div>
            <form action="<?php echo $this->form->getAction(); ?>" method="post">
            <?php echo $this->form->adminId; ?>
            <div class="centerbig_right_nav" id="right_content_div0">
               <div class="form_content">
                        <?php ZendFormUtil::renderElement($this->form->name); ?>
                        <?php ZendFormUtil::renderElement($this->form->email); ?>
                        <?php ZendFormUtil::renderElement($this->form->status); ?>
                        <?php ZendFormUtil::renderElement($this->form->password); ?>
                        <div class="form_line_div">
                            <div class="form_element_label">&nbsp;</div>
                            <div class="form_element">
                                <label>(If password is empty, system will not change password.)</label>
                            </div>
                        </div>
                        <div class="clear"></div>
               </div>
            </div>
            <div class="centerbig_right_nav" id="right_content_div1" style="display:none">
                <div class="form_content">
                <!-- department -->
                <?php
                    $error = ZendFormUtil::renderErrorMessage($this->form->department);
                    if(!empty($error)){
                ?>
                <div class="form_line_div">
                    <div class="form_element_label">
                        &nbsp;
                    </div>
                    <div class="form_element">
                        <label class="form_element_error"><?php echo $error;?></label>
                    </div>
                </div>
                <div class='clear'></div>
                <?php
                   }
                ?>
                        <?php
                            $selectedDepartment = $this->form->getValue("department");
                            if(!isset($selectedDepartment)){
                                $selectedDepartment = array();
                            }
                            for($i=0;$i<count($this->departments);$i=$i+3){
                                $department0 =  isset($this->departments[$i]) ? $this->departments[$i] : null;
                                $department1 =  isset($this->departments[$i+1]) ? $this->departments[$i+1] : null;
                                $department2 =  isset($this->departments[$i+2]) ? $this->departments[$i+2] : null;
                         ?>
                <div class="form_line_div">
                    <div class="form_element">
                         <?php
                            if(isset($department0)){
                                $checked = in_array($department0['id'], $selectedDepartment) ? "checked" : "";
                         ?>
                         <div style="float:left;width: 190px;">
                            <label>
                                <input type="checkbox" value="<?php echo $department0['id']; ?>" name="department[]" <?php echo $checked; ?> />
                                <?php echo $this->escape($department0['name']); ?>
                            </label>
                         </div>
                         <?php
                           }
                         ?>
                         <?php
                            if(isset($department1)){
                                $checked = in_array($department1['id'], $selectedDepartment) ? "checked" : "";
                         ?>
                         <div style="float:left;width: 190px;">
                            <label>
                                <input type="checkbox" value="<?php echo $department1['id']; ?>" name="department[]" <?php echo $checked; ?> />
                                <?php echo $this->escape($department1['name']); ?>
                            </label>
                         </div>
                         <?php
                           }
                         ?>
                         <?php
                            if(isset($department2)){
                                $checked = in_array($department2['id'], $selectedDepartment) ? "checked" : "";
                         ?>
                         <div style="float:left;width: 190px;">
                            <label>
                                <input type="checkbox" value="<?php echo $department2['id']; ?>" name="department[]" <?php echo $checked; ?> />
                                <?php echo $this->escape($department2['name']); ?>
                            </label>
                         </div>
                         <?php
                           }
                         ?>
                        </div>
                    </div>
                         <?php
                            }
                        ?>
                <div class='clear'></div>
                </div>
            </div>
            <?php
                $selectedPermission = $this->form->getValue("permission");
                if(!isset($selectedPermission)){
                    $selectedPermission = array();
                }
             ?>
            <div class="centerbig_right_nav" id="right_content_div2" style="display:none">
                <table style="margin:15px;text-align:center;">
                    <thead>
                        <th style="width:150px;font-size:14px;text-align:right;"><?php echo $this->translate("pPrivilege"); ?></th>
                        <th style="width:80px;font-size:14px;"><?php echo $this->translate("pRead"); ?></th>
                        <th style="width:80px;font-size:14px;"><?php echo $this->translate("pCreate"); ?></th>
                        <th style="width:80px;font-size:14px;"><?php echo $this->translate("pUpdate"); ?></th>
                        <th style="width:80px;font-size:14px;"><?php echo $this->translate("pDelete"); ?></th>
                    </thead>                   
                    <tr style="font-size:13px;">
                        <td style="text-align:center;"><b>管理员</b></td>
                        <td cospan=4></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pUser"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="1" <?php echo in_array(1, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="2" <?php echo in_array(2, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="3" <?php echo in_array(3, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="4" <?php echo in_array(4, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <!--  
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pDepartment"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="5" <?php echo in_array(5, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="6" <?php echo in_array(6, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="7" <?php echo in_array(7, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="8" <?php echo in_array(8, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    -->
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCategory"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="9"  <?php echo in_array(9, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="10" <?php echo in_array(10, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="11" <?php echo in_array(11, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="12" <?php echo in_array(12, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pRole"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="48" <?php echo in_array(48, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="49" <?php echo in_array(49, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="50" <?php echo in_array(50, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="51" <?php echo in_array(51, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pSystemLog"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="134" <?php echo in_array(134, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="135" <?php echo in_array(135, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>                                                                                         
                    <!--  
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pSetting"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="13" <?php echo in_array(13, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="14" <?php echo in_array(14, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                    </tr>
                    -->
                    <!--
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pMarketingMapping"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="79" <?php echo in_array(79, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="80" <?php echo in_array(80, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="81" <?php echo in_array(81, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="82" <?php echo in_array(82, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                   
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pEmailTemplate"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="83" <?php echo in_array(83, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="84" <?php echo in_array(84, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="85" <?php echo in_array(85, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="86" <?php echo in_array(86, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pFeaturePage"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="87" <?php echo in_array(87, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="88" <?php echo in_array(88, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="89" <?php echo in_array(89, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="90" <?php echo in_array(90, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pTraDash"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="15" <?php echo in_array(15, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCusDash"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="16" <?php echo in_array(16, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pSalDash"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="17" <?php echo in_array(17, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pProdDash"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="18" <?php echo in_array(18, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pMarDash"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="19" <?php echo in_array(19, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pTraReport"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="20" <?php echo in_array(20, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="21" <?php echo in_array(21, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="22" <?php echo in_array(22, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="23" <?php echo in_array(23, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCusReport"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="24" <?php echo in_array(24, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="25" <?php echo in_array(25, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="26" <?php echo in_array(26, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="27" <?php echo in_array(27, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pSalReport"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="28" <?php echo in_array(28, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="29" <?php echo in_array(29, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="30" <?php echo in_array(30, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="31" <?php echo in_array(31, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pProReport"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="32" <?php echo in_array(32, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="33" <?php echo in_array(33, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="34" <?php echo in_array(34, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="35" <?php echo in_array(35, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pMarReport"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="36" <?php echo in_array(36, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="37" <?php echo in_array(37, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="38" <?php echo in_array(38, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="39" <?php echo in_array(39, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    -->
                    <tr style="font-size:13px;">
                        <td style="text-align:center;"><b>订单</b></td>
                        <td cospan=4></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pOrder"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="40" <?php echo in_array(40, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="42" <?php echo in_array(42, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="43" <?php echo in_array(43, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <!--  
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pPurPrice"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="52" <?php echo in_array(52, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="53" <?php echo in_array(53, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCostPrice"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="54" <?php echo in_array(54, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="55" <?php echo in_array(55, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pListPrice"); ?></td>
                        <td>-</td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="56" <?php echo in_array(56, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pInventory"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="57" <?php echo in_array(57, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="58" <?php echo in_array(58, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                    </tr>
                    -->
                    <tr style="font-size:13px;">
                        <td style="text-align:center;"><b>产品</b></td>
                        <td cospan=4></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pProduct"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="44" <?php echo in_array(44, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="45" <?php echo in_array(45, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="46" <?php echo in_array(46, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="47" <?php echo in_array(47, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pMetadata"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="91" <?php echo in_array(91, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="92" <?php echo in_array(92, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="93" <?php echo in_array(93, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="94" <?php echo in_array(94, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pMetadataSet"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="95" <?php echo in_array(95, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="96" <?php echo in_array(96, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="97" <?php echo in_array(97, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="98" <?php echo in_array(98, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pQueryReply"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="99" <?php echo in_array(99, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="100" <?php echo in_array(100, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="101" <?php echo in_array(101, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="102" <?php echo in_array(102, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pComment"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="120" <?php echo in_array(120, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="144" <?php echo in_array(144, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="121" <?php echo in_array(121, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="122" <?php echo in_array(122, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:center;"><b>用户</b></td>
                        <td cospan=4></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCustomer"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="59" <?php echo in_array(59, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="61" <?php echo in_array(61, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="62" <?php echo in_array(62, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pAgentApply"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="113" <?php echo in_array(113, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="114" <?php echo in_array(114, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="115" <?php echo in_array(115, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCampus"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="116" <?php echo in_array(116, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="117" <?php echo in_array(117, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="118" <?php echo in_array(118, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="119" <?php echo in_array(119, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:center;"><b>促销</b></td>
                        <td cospan=4></td>
                    </tr>  
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCoupon"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="63" <?php echo in_array(63, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="64" <?php echo in_array(64, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="65" <?php echo in_array(65, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="66" <?php echo in_array(66, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pSpecialProductItem"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="136" <?php echo in_array(136, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="137" <?php echo in_array(137, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="138" <?php echo in_array(138, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="139" <?php echo in_array(139, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pSpecialSale"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="140" <?php echo in_array(136, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="141" <?php echo in_array(137, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="142" <?php echo in_array(138, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="143" <?php echo in_array(139, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pApplyGiftLog"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="123" <?php echo in_array(123, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="124" <?php echo in_array(124, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="125" <?php echo in_array(125, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pGift"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="126" <?php echo in_array(126, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="127" <?php echo in_array(127, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="128" <?php echo in_array(128, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="129" <?php echo in_array(129, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr> 
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pEmailSendingLog"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="131" <?php echo in_array(131, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="132" <?php echo in_array(132, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pMassMailing"); ?></td>
                        <td>-</td>
                        <td>-</td>
                        <td><input type="checkbox" name="permission[]" value="133" <?php echo in_array(133, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                    </tr>  
                    <!--  
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pCredit"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="67" <?php echo in_array(67, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="68" <?php echo in_array(68, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="69" <?php echo in_array(69, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="70" <?php echo in_array(70, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>                    
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pEmailMar"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="71" <?php echo in_array(71, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="72" <?php echo in_array(72, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="73" <?php echo in_array(73, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="74" <?php echo in_array(74, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pAffiliateMar"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="75" <?php echo in_array(75, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="76" <?php echo in_array(76, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="77" <?php echo in_array(77, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="78" <?php echo in_array(78, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    -->
                    <tr style="font-size:13px;">
                        <td style="text-align:center;"><b>安全账户</b></td>
                        <td cospan=4></td>
                    </tr>  
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pWithDraw"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="103" <?php echo in_array(103, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="104" <?php echo in_array(104, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="106" <?php echo in_array(106, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="105" <?php echo in_array(105, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>   
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pSupplement"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="108" <?php echo in_array(108, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="109" <?php echo in_array(109, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="111" <?php echo in_array(111, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td><input type="checkbox" name="permission[]" value="110" <?php echo in_array(110, $selectedPermission) ? "checked" : ""; ?> /></td>
                    </tr>
                    <tr style="font-size:13px;">
                        <td style="text-align:right;"><?php echo $this->translate("pTradeLog"); ?></td>
                        <td><input type="checkbox" name="permission[]" value="130" <?php echo in_array(130, $selectedPermission) ? "checked" : ""; ?> /></td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                    </tr> 
                </table>
            </div>
            </form>
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>